package cn.itcast.dao.system;

import cn.itcast.domain.system.FeedBack;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FeedDao {


    void addMessage(FeedBack feedBack);

    void updateMessage(FeedBack feedBack);

    List<FeedBack> findAllByCompanyId(@Param("email") String email,@Param("companyId") String companyId);

    List<FeedBack> findByDegree(@Param("degree") int degree);

    FeedBack findById(@Param("id") String id);

    List<FeedBack> findTotalMessageByCompanyId(@Param("companyId") String companyId,@Param("email") String email);

    List<FeedBack> findTotalMessageByDegree(@Param("degree") int degree);

    List<FeedBack> findMySessage(@Param("email") String email);
}
